<?php
// **********found**********
  $con=mysql_connect("localhost:3307","root","123456")
    or die("数据库服务器连接失败！<br>");
// **********found**********
  mysql_select_db("nrce-01",$con) or die( "数据库选择失败！<br>");
  mysql_query("set names 'gbk'");
  $sql="SELECT stu_id,stu_name FROM student WHERE stu_sex='F'";
// **********found**********
  $result=mysql_query($sql,$con);
// **********found**********
?>
<table>
  <tr>
    <td>学号</td>
    <td>姓名</td>
  </tr>
<?php
// **********found**********
  while($rows=mysql_fetch_array($result)){
?>
  <tr>
    <td><?php echo $rows[0];?></td>
    <td><?php echo $rows[1];?></td>
  </tr>
<?php
  }
?>
</table>
